#pragma once
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <search.h>
#define MAX 100
#define MAX_NAME 10

typedef struct peoinfo
{
	char name[MAX_NAME];
	int age;
	char sex[5];
	char tele[15];
	char addr[20];
}peoinfo;
typedef struct contact
{
	peoinfo data[MAX];
	int count;
}contact;
void initcontact(contact* cc);
void exitcontact(contact* cc);
void addcontact(contact* cc);
void delcontact(contact* cc);
void searchcontact(contact* cc);
void modifycontact(contact* cc);
void showcontact(contact* cc);
void sortcontact(contact* cc);